<!DOCTYPE html>
<html>
    <head>
        <#include "/${system}/component/html-head.ftl" />
    </head>
    <body>
        <#include "/${system}/component/head.ftl" />
        <div class="admin">
            <div class="aleft" id="left-container"></div>
            <div class="aright">
                <div class="arz cl">
                    <a href="donate-add"><i class="layui-icon">&#xe608;</i>添加赞助</a>
                </div>
                <form id="donate-container" method="post" class="aform cl"></form>
                <div id="pager" class="qing-text-center"></div>
            </div>
        </div>
        <script>
            layui.config({base:'${base}/${system}/js/'}).use('donate');
        </script>
        <script id="template" type="text/template">
            <table width="100%">
                <tr>
                    <th width="40%" align="center">内容</th>
                    <th width="10%" align="center">赞</th>
                    <th width="10%" align="center">踩</th>
                    <th width="20%" align="center">添加时间</th>
                    <th width="20%" align="center">基本操作</th>
                </tr>
                {{#  layui.each(d.list, function(index, item){ }}
                    <tr>
                        <td align="center">{{item.content}}</td>
                        <td align="center">{{item.likeNum}}</td>
                        <td align="center">{{item.hateNum}}</td>
                        <td align="center">{{item.cdate}}</td>
                        <td align="center">
                            <a href="/blog/back/donate-edit?id={{item.id}}">修改</a> | <a href="javascript:;" class="row-del" data="{{item.id}}">删除</a>
                        </td>
                    </tr>
                {{# }); }}
            </table>
        </script>
    </body>
</html>